Optimal. Leaf size=1957 \[ \text{result too large to display} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 2.10192, antiderivative size = 2013, normalized size of antiderivative = 1.03, number of steps used = 61, number of rules used = 17, integrand size = 31, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.548, Rules used = {2498, 2513, 2411, 2347, 2344, 2301, 2317, 2391, 2314, 31, 2319, 44, 2418, 2394, 2393, 2395, 36} \[ \text{result too large to display} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2498
Rule 2513
Rule 2411
Rule 2347
Rule 2344
Rule 2301
Rule 2317
Rule 2391
Rule 2314
Rule 31
Rule 2319
Rule 44
Rule 2418
Rule 2394
Rule 2393
Rule 2395
Rule 36
Rubi steps
\begin{align*} \int \frac{\log ^2\left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )}{(g+h x)^4} \, dx &=-\frac{\log ^2\left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )}{3 h (g+h x)^3}+\frac{(2 b p r) \int \frac{\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )}{(a+b x) (g+h x)^3} \, dx}{3 h}+\frac{(2 d q r) \int \frac{\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )}{(c+d x) (g+h x)^3} \, dx}{3 h}\\ &=-\frac{\log ^2\left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )}{3 h (g+h x)^3}+\frac{\left (2 b p^2 r^2\right ) \int \frac{\log (a+b x)}{(a+b x) (g+h x)^3} \, dx}{3 h}+\frac{\left (2 b p q r^2\right ) \int \frac{\log (c+d x)}{(a+b x) (g+h x)^3} \, dx}{3 h}+\frac{\left (2 d p q r^2\right ) \int \frac{\log (a+b x)}{(c+d x) (g+h x)^3} \, dx}{3 h}+\frac{\left (2 d q^2 r^2\right ) \int \frac{\log (c+d x)}{(c+d x) (g+h x)^3} \, dx}{3 h}-\frac{\left (2 b p r \left (p r \log (a+b x)+q r \log (c+d x)-\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )\right )\right ) \int \frac{1}{(a+b x) (g+h x)^3} \, dx}{3 h}-\frac{\left (2 d q r \left (p r \log (a+b x)+q r \log (c+d x)-\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )\right )\right ) \int \frac{1}{(c+d x) (g+h x)^3} \, dx}{3 h}\\ &=-\frac{\log ^2\left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )}{3 h (g+h x)^3}+\frac{\left (2 p^2 r^2\right ) \operatorname{Subst}\left (\int \frac{\log (x)}{x \left (\frac{b g-a h}{b}+\frac{h x}{b}\right )^3} \, dx,x,a+b x\right )}{3 h}+\frac{\left (2 b p q r^2\right ) \int \left (\frac{b^3 \log (c+d x)}{(b g-a h)^3 (a+b x)}-\frac{h \log (c+d x)}{(b g-a h) (g+h x)^3}-\frac{b h \log (c+d x)}{(b g-a h)^2 (g+h x)^2}-\frac{b^2 h \log (c+d x)}{(b g-a h)^3 (g+h x)}\right ) \, dx}{3 h}+\frac{\left (2 d p q r^2\right ) \int \left (\frac{d^3 \log (a+b x)}{(d g-c h)^3 (c+d x)}-\frac{h \log (a+b x)}{(d g-c h) (g+h x)^3}-\frac{d h \log (a+b x)}{(d g-c h)^2 (g+h x)^2}-\frac{d^2 h \log (a+b x)}{(d g-c h)^3 (g+h x)}\right ) \, dx}{3 h}+\frac{\left (2 q^2 r^2\right ) \operatorname{Subst}\left (\int \frac{\log (x)}{x \left (\frac{d g-c h}{d}+\frac{h x}{d}\right )^3} \, dx,x,c+d x\right )}{3 h}-\frac{\left (2 b p r \left (p r \log (a+b x)+q r \log (c+d x)-\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )\right )\right ) \int \left (\frac{b^3}{(b g-a h)^3 (a+b x)}-\frac{h}{(b g-a h) (g+h x)^3}-\frac{b h}{(b g-a h)^2 (g+h x)^2}-\frac{b^2 h}{(b g-a h)^3 (g+h x)}\right ) \, dx}{3 h}-\frac{\left (2 d q r \left (p r \log (a+b x)+q r \log (c+d x)-\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )\right )\right ) \int \left (\frac{d^3}{(d g-c h)^3 (c+d x)}-\frac{h}{(d g-c h) (g+h x)^3}-\frac{d h}{(d g-c h)^2 (g+h x)^2}-\frac{d^2 h}{(d g-c h)^3 (g+h x)}\right ) \, dx}{3 h}\\ &=-\frac{b p r \left (p r \log (a+b x)+q r \log (c+d x)-\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )\right )}{3 h (b g-a h) (g+h x)^2}-\frac{d q r \left (p r \log (a+b x)+q r \log (c+d x)-\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )\right )}{3 h (d g-c h) (g+h x)^2}-\frac{2 b^2 p r \left (p r \log (a+b x)+q r \log (c+d x)-\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )\right )}{3 h (b g-a h)^2 (g+h x)}-\frac{2 d^2 q r \left (p r \log (a+b x)+q r \log (c+d x)-\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )\right )}{3 h (d g-c h)^2 (g+h x)}-\frac{2 b^3 p r \log (a+b x) \left (p r \log (a+b x)+q r \log (c+d x)-\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )\right )}{3 h (b g-a h)^3}-\frac{2 d^3 q r \log (c+d x) \left (p r \log (a+b x)+q r \log (c+d x)-\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )\right )}{3 h (d g-c h)^3}-\frac{\log ^2\left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )}{3 h (g+h x)^3}+\frac{2 b^3 p r \left (p r \log (a+b x)+q r \log (c+d x)-\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )\right ) \log (g+h x)}{3 h (b g-a h)^3}+\frac{2 d^3 q r \left (p r \log (a+b x)+q r \log (c+d x)-\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )\right ) \log (g+h x)}{3 h (d g-c h)^3}-\frac{\left (2 p^2 r^2\right ) \operatorname{Subst}\left (\int \frac{\log (x)}{\left (\frac{b g-a h}{b}+\frac{h x}{b}\right )^3} \, dx,x,a+b x\right )}{3 (b g-a h)}+\frac{\left (2 b p^2 r^2\right ) \operatorname{Subst}\left (\int \frac{\log (x)}{x \left (\frac{b g-a h}{b}+\frac{h x}{b}\right )^2} \, dx,x,a+b x\right )}{3 h (b g-a h)}-\frac{\left (2 b^3 p q r^2\right ) \int \frac{\log (c+d x)}{g+h x} \, dx}{3 (b g-a h)^3}+\frac{\left (2 b^4 p q r^2\right ) \int \frac{\log (c+d x)}{a+b x} \, dx}{3 h (b g-a h)^3}-\frac{\left (2 b^2 p q r^2\right ) \int \frac{\log (c+d x)}{(g+h x)^2} \, dx}{3 (b g-a h)^2}-\frac{\left (2 b p q r^2\right ) \int \frac{\log (c+d x)}{(g+h x)^3} \, dx}{3 (b g-a h)}-\frac{\left (2 d^3 p q r^2\right ) \int \frac{\log (a+b x)}{g+h x} \, dx}{3 (d g-c h)^3}+\frac{\left (2 d^4 p q r^2\right ) \int \frac{\log (a+b x)}{c+d x} \, dx}{3 h (d g-c h)^3}-\frac{\left (2 d^2 p q r^2\right ) \int \frac{\log (a+b x)}{(g+h x)^2} \, dx}{3 (d g-c h)^2}-\frac{\left (2 d p q r^2\right ) \int \frac{\log (a+b x)}{(g+h x)^3} \, dx}{3 (d g-c h)}-\frac{\left (2 q^2 r^2\right ) \operatorname{Subst}\left (\int \frac{\log (x)}{\left (\frac{d g-c h}{d}+\frac{h x}{d}\right )^3} \, dx,x,c+d x\right )}{3 (d g-c h)}+\frac{\left (2 d q^2 r^2\right ) \operatorname{Subst}\left (\int \frac{\log (x)}{x \left (\frac{d g-c h}{d}+\frac{h x}{d}\right )^2} \, dx,x,c+d x\right )}{3 h (d g-c h)}\\ &=\frac{b p^2 r^2 \log (a+b x)}{3 h (b g-a h) (g+h x)^2}+\frac{d p q r^2 \log (a+b x)}{3 h (d g-c h) (g+h x)^2}+\frac{2 d^2 p q r^2 \log (a+b x)}{3 h (d g-c h)^2 (g+h x)}+\frac{b p q r^2 \log (c+d x)}{3 h (b g-a h) (g+h x)^2}+\frac{d q^2 r^2 \log (c+d x)}{3 h (d g-c h) (g+h x)^2}+\frac{2 b^2 p q r^2 \log (c+d x)}{3 h (b g-a h)^2 (g+h x)}+\frac{2 b^3 p q r^2 \log \left (-\frac{d (a+b x)}{b c-a d}\right ) \log (c+d x)}{3 h (b g-a h)^3}+\frac{2 d^3 p q r^2 \log (a+b x) \log \left (\frac{b (c+d x)}{b c-a d}\right )}{3 h (d g-c h)^3}-\frac{b p r \left (p r \log (a+b x)+q r \log (c+d x)-\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )\right )}{3 h (b g-a h) (g+h x)^2}-\frac{d q r \left (p r \log (a+b x)+q r \log (c+d x)-\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )\right )}{3 h (d g-c h) (g+h x)^2}-\frac{2 b^2 p r \left (p r \log (a+b x)+q r \log (c+d x)-\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )\right )}{3 h (b g-a h)^2 (g+h x)}-\frac{2 d^2 q r \left (p r \log (a+b x)+q r \log (c+d x)-\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )\right )}{3 h (d g-c h)^2 (g+h x)}-\frac{2 b^3 p r \log (a+b x) \left (p r \log (a+b x)+q r \log (c+d x)-\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )\right )}{3 h (b g-a h)^3}-\frac{2 d^3 q r \log (c+d x) \left (p r \log (a+b x)+q r \log (c+d x)-\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )\right )}{3 h (d g-c h)^3}-\frac{\log ^2\left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )}{3 h (g+h x)^3}+\frac{2 b^3 p r \left (p r \log (a+b x)+q r \log (c+d x)-\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )\right ) \log (g+h x)}{3 h (b g-a h)^3}+\frac{2 d^3 q r \left (p r \log (a+b x)+q r \log (c+d x)-\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )\right ) \log (g+h x)}{3 h (d g-c h)^3}-\frac{2 d^3 p q r^2 \log (a+b x) \log \left (\frac{b (g+h x)}{b g-a h}\right )}{3 h (d g-c h)^3}-\frac{2 b^3 p q r^2 \log (c+d x) \log \left (\frac{d (g+h x)}{d g-c h}\right )}{3 h (b g-a h)^3}-\frac{\left (2 b p^2 r^2\right ) \operatorname{Subst}\left (\int \frac{\log (x)}{\left (\frac{b g-a h}{b}+\frac{h x}{b}\right )^2} \, dx,x,a+b x\right )}{3 (b g-a h)^2}+\frac{\left (2 b^2 p^2 r^2\right ) \operatorname{Subst}\left (\int \frac{\log (x)}{x \left (\frac{b g-a h}{b}+\frac{h x}{b}\right )} \, dx,x,a+b x\right )}{3 h (b g-a h)^2}-\frac{\left (b p^2 r^2\right ) \operatorname{Subst}\left (\int \frac{1}{x \left (\frac{b g-a h}{b}+\frac{h x}{b}\right )^2} \, dx,x,a+b x\right )}{3 h (b g-a h)}-\frac{\left (2 b^3 d p q r^2\right ) \int \frac{\log \left (\frac{d (a+b x)}{-b c+a d}\right )}{c+d x} \, dx}{3 h (b g-a h)^3}+\frac{\left (2 b^3 d p q r^2\right ) \int \frac{\log \left (\frac{d (g+h x)}{d g-c h}\right )}{c+d x} \, dx}{3 h (b g-a h)^3}-\frac{\left (2 b^2 d p q r^2\right ) \int \frac{1}{(c+d x) (g+h x)} \, dx}{3 h (b g-a h)^2}-\frac{\left (b d p q r^2\right ) \int \frac{1}{(c+d x) (g+h x)^2} \, dx}{3 h (b g-a h)}-\frac{\left (2 b d^3 p q r^2\right ) \int \frac{\log \left (\frac{b (c+d x)}{b c-a d}\right )}{a+b x} \, dx}{3 h (d g-c h)^3}+\frac{\left (2 b d^3 p q r^2\right ) \int \frac{\log \left (\frac{b (g+h x)}{b g-a h}\right )}{a+b x} \, dx}{3 h (d g-c h)^3}-\frac{\left (2 b d^2 p q r^2\right ) \int \frac{1}{(a+b x) (g+h x)} \, dx}{3 h (d g-c h)^2}-\frac{\left (b d p q r^2\right ) \int \frac{1}{(a+b x) (g+h x)^2} \, dx}{3 h (d g-c h)}-\frac{\left (2 d q^2 r^2\right ) \operatorname{Subst}\left (\int \frac{\log (x)}{\left (\frac{d g-c h}{d}+\frac{h x}{d}\right )^2} \, dx,x,c+d x\right )}{3 (d g-c h)^2}+\frac{\left (2 d^2 q^2 r^2\right ) \operatorname{Subst}\left (\int \frac{\log (x)}{x \left (\frac{d g-c h}{d}+\frac{h x}{d}\right )} \, dx,x,c+d x\right )}{3 h (d g-c h)^2}-\frac{\left (d q^2 r^2\right ) \operatorname{Subst}\left (\int \frac{1}{x \left (\frac{d g-c h}{d}+\frac{h x}{d}\right )^2} \, dx,x,c+d x\right )}{3 h (d g-c h)}\\ &=\frac{b p^2 r^2 \log (a+b x)}{3 h (b g-a h) (g+h x)^2}+\frac{d p q r^2 \log (a+b x)}{3 h (d g-c h) (g+h x)^2}+\frac{2 d^2 p q r^2 \log (a+b x)}{3 h (d g-c h)^2 (g+h x)}-\frac{2 b^2 p^2 r^2 (a+b x) \log (a+b x)}{3 (b g-a h)^3 (g+h x)}+\frac{b p q r^2 \log (c+d x)}{3 h (b g-a h) (g+h x)^2}+\frac{d q^2 r^2 \log (c+d x)}{3 h (d g-c h) (g+h x)^2}+\frac{2 b^2 p q r^2 \log (c+d x)}{3 h (b g-a h)^2 (g+h x)}-\frac{2 d^2 q^2 r^2 (c+d x) \log (c+d x)}{3 (d g-c h)^3 (g+h x)}+\frac{2 b^3 p q r^2 \log \left (-\frac{d (a+b x)}{b c-a d}\right ) \log (c+d x)}{3 h (b g-a h)^3}+\frac{2 d^3 p q r^2 \log (a+b x) \log \left (\frac{b (c+d x)}{b c-a d}\right )}{3 h (d g-c h)^3}-\frac{b p r \left (p r \log (a+b x)+q r \log (c+d x)-\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )\right )}{3 h (b g-a h) (g+h x)^2}-\frac{d q r \left (p r \log (a+b x)+q r \log (c+d x)-\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )\right )}{3 h (d g-c h) (g+h x)^2}-\frac{2 b^2 p r \left (p r \log (a+b x)+q r \log (c+d x)-\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )\right )}{3 h (b g-a h)^2 (g+h x)}-\frac{2 d^2 q r \left (p r \log (a+b x)+q r \log (c+d x)-\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )\right )}{3 h (d g-c h)^2 (g+h x)}-\frac{2 b^3 p r \log (a+b x) \left (p r \log (a+b x)+q r \log (c+d x)-\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )\right )}{3 h (b g-a h)^3}-\frac{2 d^3 q r \log (c+d x) \left (p r \log (a+b x)+q r \log (c+d x)-\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )\right )}{3 h (d g-c h)^3}-\frac{\log ^2\left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )}{3 h (g+h x)^3}+\frac{2 b^3 p r \left (p r \log (a+b x)+q r \log (c+d x)-\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )\right ) \log (g+h x)}{3 h (b g-a h)^3}+\frac{2 d^3 q r \left (p r \log (a+b x)+q r \log (c+d x)-\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )\right ) \log (g+h x)}{3 h (d g-c h)^3}-\frac{2 d^3 p q r^2 \log (a+b x) \log \left (\frac{b (g+h x)}{b g-a h}\right )}{3 h (d g-c h)^3}-\frac{2 b^3 p q r^2 \log (c+d x) \log \left (\frac{d (g+h x)}{d g-c h}\right )}{3 h (b g-a h)^3}+\frac{\left (2 b^2 p^2 r^2\right ) \operatorname{Subst}\left (\int \frac{1}{\frac{b g-a h}{b}+\frac{h x}{b}} \, dx,x,a+b x\right )}{3 (b g-a h)^3}-\frac{\left (2 b^2 p^2 r^2\right ) \operatorname{Subst}\left (\int \frac{\log (x)}{\frac{b g-a h}{b}+\frac{h x}{b}} \, dx,x,a+b x\right )}{3 (b g-a h)^3}+\frac{\left (2 b^3 p^2 r^2\right ) \operatorname{Subst}\left (\int \frac{\log (x)}{x} \, dx,x,a+b x\right )}{3 h (b g-a h)^3}-\frac{\left (b p^2 r^2\right ) \operatorname{Subst}\left (\int \left (\frac{b^2}{(b g-a h)^2 x}-\frac{b^2 h}{(b g-a h) (b g-a h+h x)^2}-\frac{b^2 h}{(b g-a h)^2 (b g-a h+h x)}\right ) \, dx,x,a+b x\right )}{3 h (b g-a h)}-\frac{\left (2 b^3 p q r^2\right ) \operatorname{Subst}\left (\int \frac{\log \left (1+\frac{b x}{-b c+a d}\right )}{x} \, dx,x,c+d x\right )}{3 h (b g-a h)^3}+\frac{\left (2 b^3 p q r^2\right ) \operatorname{Subst}\left (\int \frac{\log \left (1+\frac{h x}{d g-c h}\right )}{x} \, dx,x,c+d x\right )}{3 h (b g-a h)^3}-\frac{\left (b d p q r^2\right ) \int \left (\frac{d^2}{(d g-c h)^2 (c+d x)}-\frac{h}{(d g-c h) (g+h x)^2}-\frac{d h}{(d g-c h)^2 (g+h x)}\right ) \, dx}{3 h (b g-a h)}-\frac{\left (2 d^3 p q r^2\right ) \operatorname{Subst}\left (\int \frac{\log \left (1+\frac{d x}{b c-a d}\right )}{x} \, dx,x,a+b x\right )}{3 h (d g-c h)^3}+\frac{\left (2 d^3 p q r^2\right ) \operatorname{Subst}\left (\int \frac{\log \left (1+\frac{h x}{b g-a h}\right )}{x} \, dx,x,a+b x\right )}{3 h (d g-c h)^3}+\frac{\left (2 b d^2 p q r^2\right ) \int \frac{1}{g+h x} \, dx}{3 (b g-a h) (d g-c h)^2}-\frac{\left (2 b^2 d^2 p q r^2\right ) \int \frac{1}{a+b x} \, dx}{3 h (b g-a h) (d g-c h)^2}-\frac{\left (b d p q r^2\right ) \int \left (\frac{b^2}{(b g-a h)^2 (a+b x)}-\frac{h}{(b g-a h) (g+h x)^2}-\frac{b h}{(b g-a h)^2 (g+h x)}\right ) \, dx}{3 h (d g-c h)}+\frac{\left (2 b^2 d p q r^2\right ) \int \frac{1}{g+h x} \, dx}{3 (b g-a h)^2 (d g-c h)}-\frac{\left (2 b^2 d^2 p q r^2\right ) \int \frac{1}{c+d x} \, dx}{3 h (b g-a h)^2 (d g-c h)}+\frac{\left (2 d^2 q^2 r^2\right ) \operatorname{Subst}\left (\int \frac{1}{\frac{d g-c h}{d}+\frac{h x}{d}} \, dx,x,c+d x\right )}{3 (d g-c h)^3}-\frac{\left (2 d^2 q^2 r^2\right ) \operatorname{Subst}\left (\int \frac{\log (x)}{\frac{d g-c h}{d}+\frac{h x}{d}} \, dx,x,c+d x\right )}{3 (d g-c h)^3}+\frac{\left (2 d^3 q^2 r^2\right ) \operatorname{Subst}\left (\int \frac{\log (x)}{x} \, dx,x,c+d x\right )}{3 h (d g-c h)^3}-\frac{\left (d q^2 r^2\right ) \operatorname{Subst}\left (\int \left (\frac{d^2}{(d g-c h)^2 x}-\frac{d^2 h}{(d g-c h) (d g-c h+h x)^2}-\frac{d^2 h}{(d g-c h)^2 (d g-c h+h x)}\right ) \, dx,x,c+d x\right )}{3 h (d g-c h)}\\ &=-\frac{b^2 p^2 r^2}{3 h (b g-a h)^2 (g+h x)}-\frac{2 b d p q r^2}{3 h (b g-a h) (d g-c h) (g+h x)}-\frac{d^2 q^2 r^2}{3 h (d g-c h)^2 (g+h x)}-\frac{b^3 p^2 r^2 \log (a+b x)}{3 h (b g-a h)^3}-\frac{2 b d^2 p q r^2 \log (a+b x)}{3 h (b g-a h) (d g-c h)^2}-\frac{b^2 d p q r^2 \log (a+b x)}{3 h (b g-a h)^2 (d g-c h)}+\frac{b p^2 r^2 \log (a+b x)}{3 h (b g-a h) (g+h x)^2}+\frac{d p q r^2 \log (a+b x)}{3 h (d g-c h) (g+h x)^2}+\frac{2 d^2 p q r^2 \log (a+b x)}{3 h (d g-c h)^2 (g+h x)}-\frac{2 b^2 p^2 r^2 (a+b x) \log (a+b x)}{3 (b g-a h)^3 (g+h x)}+\frac{b^3 p^2 r^2 \log ^2(a+b x)}{3 h (b g-a h)^3}-\frac{b d^2 p q r^2 \log (c+d x)}{3 h (b g-a h) (d g-c h)^2}-\frac{2 b^2 d p q r^2 \log (c+d x)}{3 h (b g-a h)^2 (d g-c h)}-\frac{d^3 q^2 r^2 \log (c+d x)}{3 h (d g-c h)^3}+\frac{b p q r^2 \log (c+d x)}{3 h (b g-a h) (g+h x)^2}+\frac{d q^2 r^2 \log (c+d x)}{3 h (d g-c h) (g+h x)^2}+\frac{2 b^2 p q r^2 \log (c+d x)}{3 h (b g-a h)^2 (g+h x)}-\frac{2 d^2 q^2 r^2 (c+d x) \log (c+d x)}{3 (d g-c h)^3 (g+h x)}+\frac{2 b^3 p q r^2 \log \left (-\frac{d (a+b x)}{b c-a d}\right ) \log (c+d x)}{3 h (b g-a h)^3}+\frac{d^3 q^2 r^2 \log ^2(c+d x)}{3 h (d g-c h)^3}+\frac{2 d^3 p q r^2 \log (a+b x) \log \left (\frac{b (c+d x)}{b c-a d}\right )}{3 h (d g-c h)^3}-\frac{b p r \left (p r \log (a+b x)+q r \log (c+d x)-\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )\right )}{3 h (b g-a h) (g+h x)^2}-\frac{d q r \left (p r \log (a+b x)+q r \log (c+d x)-\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )\right )}{3 h (d g-c h) (g+h x)^2}-\frac{2 b^2 p r \left (p r \log (a+b x)+q r \log (c+d x)-\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )\right )}{3 h (b g-a h)^2 (g+h x)}-\frac{2 d^2 q r \left (p r \log (a+b x)+q r \log (c+d x)-\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )\right )}{3 h (d g-c h)^2 (g+h x)}-\frac{2 b^3 p r \log (a+b x) \left (p r \log (a+b x)+q r \log (c+d x)-\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )\right )}{3 h (b g-a h)^3}-\frac{2 d^3 q r \log (c+d x) \left (p r \log (a+b x)+q r \log (c+d x)-\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )\right )}{3 h (d g-c h)^3}-\frac{\log ^2\left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )}{3 h (g+h x)^3}+\frac{b^3 p^2 r^2 \log (g+h x)}{h (b g-a h)^3}+\frac{b d^2 p q r^2 \log (g+h x)}{h (b g-a h) (d g-c h)^2}+\frac{b^2 d p q r^2 \log (g+h x)}{h (b g-a h)^2 (d g-c h)}+\frac{d^3 q^2 r^2 \log (g+h x)}{h (d g-c h)^3}+\frac{2 b^3 p r \left (p r \log (a+b x)+q r \log (c+d x)-\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )\right ) \log (g+h x)}{3 h (b g-a h)^3}+\frac{2 d^3 q r \left (p r \log (a+b x)+q r \log (c+d x)-\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )\right ) \log (g+h x)}{3 h (d g-c h)^3}-\frac{2 b^3 p^2 r^2 \log (a+b x) \log \left (\frac{b (g+h x)}{b g-a h}\right )}{3 h (b g-a h)^3}-\frac{2 d^3 p q r^2 \log (a+b x) \log \left (\frac{b (g+h x)}{b g-a h}\right )}{3 h (d g-c h)^3}-\frac{2 b^3 p q r^2 \log (c+d x) \log \left (\frac{d (g+h x)}{d g-c h}\right )}{3 h (b g-a h)^3}-\frac{2 d^3 q^2 r^2 \log (c+d x) \log \left (\frac{d (g+h x)}{d g-c h}\right )}{3 h (d g-c h)^3}+\frac{2 d^3 p q r^2 \text{Li}_2\left (-\frac{d (a+b x)}{b c-a d}\right )}{3 h (d g-c h)^3}-\frac{2 d^3 p q r^2 \text{Li}_2\left (-\frac{h (a+b x)}{b g-a h}\right )}{3 h (d g-c h)^3}+\frac{2 b^3 p q r^2 \text{Li}_2\left (\frac{b (c+d x)}{b c-a d}\right )}{3 h (b g-a h)^3}-\frac{2 b^3 p q r^2 \text{Li}_2\left (-\frac{h (c+d x)}{d g-c h}\right )}{3 h (b g-a h)^3}+\frac{\left (2 b^3 p^2 r^2\right ) \operatorname{Subst}\left (\int \frac{\log \left (1+\frac{h x}{b g-a h}\right )}{x} \, dx,x,a+b x\right )}{3 h (b g-a h)^3}+\frac{\left (2 d^3 q^2 r^2\right ) \operatorname{Subst}\left (\int \frac{\log \left (1+\frac{h x}{d g-c h}\right )}{x} \, dx,x,c+d x\right )}{3 h (d g-c h)^3}\\ &=-\frac{b^2 p^2 r^2}{3 h (b g-a h)^2 (g+h x)}-\frac{2 b d p q r^2}{3 h (b g-a h) (d g-c h) (g+h x)}-\frac{d^2 q^2 r^2}{3 h (d g-c h)^2 (g+h x)}-\frac{b^3 p^2 r^2 \log (a+b x)}{3 h (b g-a h)^3}-\frac{2 b d^2 p q r^2 \log (a+b x)}{3 h (b g-a h) (d g-c h)^2}-\frac{b^2 d p q r^2 \log (a+b x)}{3 h (b g-a h)^2 (d g-c h)}+\frac{b p^2 r^2 \log (a+b x)}{3 h (b g-a h) (g+h x)^2}+\frac{d p q r^2 \log (a+b x)}{3 h (d g-c h) (g+h x)^2}+\frac{2 d^2 p q r^2 \log (a+b x)}{3 h (d g-c h)^2 (g+h x)}-\frac{2 b^2 p^2 r^2 (a+b x) \log (a+b x)}{3 (b g-a h)^3 (g+h x)}+\frac{b^3 p^2 r^2 \log ^2(a+b x)}{3 h (b g-a h)^3}-\frac{b d^2 p q r^2 \log (c+d x)}{3 h (b g-a h) (d g-c h)^2}-\frac{2 b^2 d p q r^2 \log (c+d x)}{3 h (b g-a h)^2 (d g-c h)}-\frac{d^3 q^2 r^2 \log (c+d x)}{3 h (d g-c h)^3}+\frac{b p q r^2 \log (c+d x)}{3 h (b g-a h) (g+h x)^2}+\frac{d q^2 r^2 \log (c+d x)}{3 h (d g-c h) (g+h x)^2}+\frac{2 b^2 p q r^2 \log (c+d x)}{3 h (b g-a h)^2 (g+h x)}-\frac{2 d^2 q^2 r^2 (c+d x) \log (c+d x)}{3 (d g-c h)^3 (g+h x)}+\frac{2 b^3 p q r^2 \log \left (-\frac{d (a+b x)}{b c-a d}\right ) \log (c+d x)}{3 h (b g-a h)^3}+\frac{d^3 q^2 r^2 \log ^2(c+d x)}{3 h (d g-c h)^3}+\frac{2 d^3 p q r^2 \log (a+b x) \log \left (\frac{b (c+d x)}{b c-a d}\right )}{3 h (d g-c h)^3}-\frac{b p r \left (p r \log (a+b x)+q r \log (c+d x)-\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )\right )}{3 h (b g-a h) (g+h x)^2}-\frac{d q r \left (p r \log (a+b x)+q r \log (c+d x)-\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )\right )}{3 h (d g-c h) (g+h x)^2}-\frac{2 b^2 p r \left (p r \log (a+b x)+q r \log (c+d x)-\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )\right )}{3 h (b g-a h)^2 (g+h x)}-\frac{2 d^2 q r \left (p r \log (a+b x)+q r \log (c+d x)-\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )\right )}{3 h (d g-c h)^2 (g+h x)}-\frac{2 b^3 p r \log (a+b x) \left (p r \log (a+b x)+q r \log (c+d x)-\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )\right )}{3 h (b g-a h)^3}-\frac{2 d^3 q r \log (c+d x) \left (p r \log (a+b x)+q r \log (c+d x)-\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )\right )}{3 h (d g-c h)^3}-\frac{\log ^2\left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )}{3 h (g+h x)^3}+\frac{b^3 p^2 r^2 \log (g+h x)}{h (b g-a h)^3}+\frac{b d^2 p q r^2 \log (g+h x)}{h (b g-a h) (d g-c h)^2}+\frac{b^2 d p q r^2 \log (g+h x)}{h (b g-a h)^2 (d g-c h)}+\frac{d^3 q^2 r^2 \log (g+h x)}{h (d g-c h)^3}+\frac{2 b^3 p r \left (p r \log (a+b x)+q r \log (c+d x)-\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )\right ) \log (g+h x)}{3 h (b g-a h)^3}+\frac{2 d^3 q r \left (p r \log (a+b x)+q r \log (c+d x)-\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )\right ) \log (g+h x)}{3 h (d g-c h)^3}-\frac{2 b^3 p^2 r^2 \log (a+b x) \log \left (\frac{b (g+h x)}{b g-a h}\right )}{3 h (b g-a h)^3}-\frac{2 d^3 p q r^2 \log (a+b x) \log \left (\frac{b (g+h x)}{b g-a h}\right )}{3 h (d g-c h)^3}-\frac{2 b^3 p q r^2 \log (c+d x) \log \left (\frac{d (g+h x)}{d g-c h}\right )}{3 h (b g-a h)^3}-\frac{2 d^3 q^2 r^2 \log (c+d x) \log \left (\frac{d (g+h x)}{d g-c h}\right )}{3 h (d g-c h)^3}+\frac{2 d^3 p q r^2 \text{Li}_2\left (-\frac{d (a+b x)}{b c-a d}\right )}{3 h (d g-c h)^3}-\frac{2 b^3 p^2 r^2 \text{Li}_2\left (-\frac{h (a+b x)}{b g-a h}\right )}{3 h (b g-a h)^3}-\frac{2 d^3 p q r^2 \text{Li}_2\left (-\frac{h (a+b x)}{b g-a h}\right )}{3 h (d g-c h)^3}+\frac{2 b^3 p q r^2 \text{Li}_2\left (\frac{b (c+d x)}{b c-a d}\right )}{3 h (b g-a h)^3}-\frac{2 b^3 p q r^2 \text{Li}_2\left (-\frac{h (c+d x)}{d g-c h}\right )}{3 h (b g-a h)^3}-\frac{2 d^3 q^2 r^2 \text{Li}_2\left (-\frac{h (c+d x)}{d g-c h}\right )}{3 h (d g-c h)^3}\\ \end{align*}
Mathematica [B] time = 6.54072, size = 47110, normalized size = 24.07 \[ \text{Result too large to show} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.52, size = 0, normalized size = 0. \begin{align*} \int{\frac{ \left ( \ln \left ( e \left ( f \left ( bx+a \right ) ^{p} \left ( dx+c \right ) ^{q} \right ) ^{r} \right ) \right ) ^{2}}{ \left ( hx+g \right ) ^{4}}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 5.21219, size = 6388, normalized size = 3.26 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{\log \left (\left ({\left (b x + a\right )}^{p}{\left (d x + c\right )}^{q} f\right )^{r} e\right )^{2}}{h^{4} x^{4} + 4 \, g h^{3} x^{3} + 6 \, g^{2} h^{2} x^{2} + 4 \, g^{3} h x + g^{4}}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\log \left (\left ({\left (b x + a\right )}^{p}{\left (d x + c\right )}^{q} f\right )^{r} e\right )^{2}}{{\left (h x + g\right )}^{4}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]